package com.mdd.common.mapper.article;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mdd.common.core.basics.IBaseMapper;
import com.mdd.common.entity.article.Article;
import com.mdd.common.validate.article.ArticleSearchValidate;
import com.mdd.common.vo.article.ArticleListedVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 文章
 */
@Mapper
public interface ArticleMapper extends IBaseMapper<Article> {


    /**
     * 查询文章列表
     *
     * @param page
     * @param req
     * @return
     */
    IPage<ArticleListedVo> getArticleListPc(Page page, @Param("req") ArticleSearchValidate req);
}
